package com.ruoyi.task;

import com.ruoyi.mapper.AdvBroadcastMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Slf4j
@Component
public class BroadcastTask {

    @Autowired
    private AdvBroadcastMapper advBroadcastMapper;


//    @Scheduled(cron = "0 0/2 * * * ?")
    public void orderConfirm() throws IOException {
        System.out.println("执行了判断直播状态方法");
        advBroadcastMapper.checkBroadStatus();
    }

}
